#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    stroka.setText("Бегущая строка ");
    QDial * dial = new QDial;

    connect(dial,SIGNAL(valueChanged(int)),&stroka, SLOT(change(int)));
    connect(button,SIGNAL(clicked()),this,SLOT(close()));

    horizontal.addWidget(&stroka);

    vertical.addWidget(dial);
    vertical.addWidget(button);
    horizontal.addLayout(&vertical);
    widget.setLayout(&horizontal);

    setCentralWidget(&widget);

}

MainWindow::~MainWindow()
{

}

